﻿@model Proggy.Data.Entities.PublishableNode
@{
    ViewBag.Title = "Trash";
}
<h2>@ViewBag.Title</h2>
<div class="proggy-form-div">
    <h3>
        Trash #@Model.PublishableNodeId (@Model.Name)? @(Model.HasChildren ? "and all of it's child content?" : "")</h3>
    <p class="red">
        Are you absolutely sure you want to trash this content? Please review the process
        below
    </p>
    <ul class="red italic" style="margin-bottom: 1em">
        <li>This content @(MvcHtmlString.Create(Model.HasChildren ? "<span class=\"strong\">and all of it's child content</span>" : ""))
            will be "trashed" (it can be restored later)</li>
        <li>This means that you will lose:<ul>
            <li>(Potentially) published content (if the published content is being edited, only
                the edited or "draft" data will be saved)</li>
            <li>Where it sits in terms of other content (ie order, parent)</li>
        </ul>
        </li>
        <li>But you will retain:<ul>
            <li>Name</li>
            <li>Url slug</li>
            <li>Unique alias</li>
            <li>Content type / template</li>
            <li>Content</li>
        </ul>
        </li>
    </ul>
    <p>
        Please review the above before clicking "trash" below.</p>
    @using (Html.BeginForm())
    {
        @:@Html.ValidationSummary(false)
        @:@Html.HiddenFor(m => m.PublishableNodeId)
        <p>
            <input type="submit" value="Trash" class="proggy-button-stop" />
            |
            @Html.ActionLink("Cancel", "Index", new { success = 5, open = Model.PublishableNodeId }, new { @class = "proggy-button-go" })
            |
            @Html.ActionLink("Edit >>", "Edit", new { id = Model.PublishableNodeId }, new { @class = "proggy-button" })
        </p>
    }
</div>
